<!DOCTYPE html>
<head>
 
<meta charset="utf-8">
 
<meta http-equiv="X-UA-Compatible" content="IE=edge">
 
<title>index</title>
<link rel="stylesheet" href="__ROOT__/PUBLIC/css/bootstrap.min.css" />
<link rel="stylesheet"
	href="__ROOT__/PUBLIC/jquery-ui-1.13.1/jquery-ui.css">

<script type="text/javascript"
	src="__ROOT__/PUBLIC/jquery-ui-1.13.1/external/jquery/jquery.js"></script>
<script type="text/javascript"
	src="__ROOT__/PUBLIC/jquery-ui-1.13.1/jquery-ui.js"></script>
</head>
<body>
	<!-- <style>
		table,
		table tr th,
		table tr td {
			border: 1px solid #000000;
		}

		table {
			width: 800px;
			min-height: 80px;
			line-height: 40px;
			text-align: center;
			border-collapse: collapse;
		}
	</style>    -->
	  
	<style>
table, table tr th, table tr td {
	border: 1px solid #000000;
}

table {
	min-height: 30px;
	line-height: 180%;
	text-align: center;
	border-collapse: collapse;
}
</style>
	    
<p>库存分析表</p>
	 
</body>

 
<script>
$("th").resizable();
$("th > div:last-child").removeClass();
	
	$.post("__CONTROLLER__/tjajaxceshi/",
 		    { 		      
 		     	     
 		    },
 		    function(data,status){ 	
 		    	
 		    	/* var temparr1=data.slice(0,data.search("fenge")).split(',');
		    	var temparr2=data.slice(data.search("fenge")+5,data.length);
		    	//转换为json
		    	var j1=$.parseJSON(temparr1);	
		    	var j2=$.parseJSON(temparr2);
 		    	console.log(temparr1); 	
 		   	    console.log(temparr2); */
 		   	    var j1=$.parseJSON(data);	
 		   	    console.log(j1); 	
 		   	    var divstart= "<div>";
	    	    var divend= "</div>";
	    	    
 		   	    var tanblestart= "<table border=1 cellspacing='0' cellpadding='0' style='border: solid 1px black; border-collapse: collapse'>";
	    	    var tanbleend= "</table>";
	    		    		  	    		    		    				    		
		    		//表头
		    		 var biaogearr="";
		    		 biaogearr=biaogearr+divstart+tanblestart;
		    	
		    		 biaogearr=biaogearr+"<thead>"
		    		 + "<tr>"					
					 + "<th><nobr>&nbsp&nbsp配送类型&nbsp&nbsp</nobr></th>"
					 + "<th><nobr>&nbsp&nbsp单品名称&nbsp&nbsp</nobr></th>"
					 + "<th><nobr>&nbsp&nbsp要货件数&nbsp&nbsp</nobr></th>"
					 + "<th><nobr>&nbsp&nbsp发货批次&nbsp&nbsp</nobr></th>"
					 + "<th><nobr>&nbsp&nbsp货物类型&nbsp&nbsp</nobr></th>"
					 + "<th><nobr>&nbsp&nbsp实际库存&nbsp&nbsp</nobr></th>"
					 + "<th><nobr>&nbsp&nbsp发货后实际库存&nbsp&nbsp</nobr></th>"
					 + "<th><nobr>&nbsp&nbsp虚拟库存&nbsp&nbsp</nobr></th>"
					 + "<th><nobr>&nbsp&nbsp发货后虚拟库存&nbsp&nbsp</nobr></th>"
					 + "<th><nobr>&nbsp&nbsp库位&nbsp&nbsp</nobr></th>"						 
					 + "</thead>"					     
					 + "<tbody>";	
					  for(var a=0;a<j1.length;a++){
						     biaogearr= biaogearr+ "<tr>"						
							 + "<th><nobr>&nbsp&nbsp"+j1[a].leixing+"&nbsp&nbsp</nobr></th>"
							 + "<th><nobr>&nbsp&nbsp"+j1[a].pinming+"&nbsp&nbsp</nobr></th>"
							 + "<th><nobr>&nbsp&nbsp"+j1[a].zjs+"&nbsp&nbsp</nobr></th>"
							 + "<th><nobr>&nbsp&nbsp"+j1[a].pici+"&nbsp&nbsp</nobr></th>"
							 + "<th><nobr>&nbsp&nbsp"+j1[a].hwlx+"&nbsp&nbsp</nobr></th>"
							 + "<th><nobr>&nbsp&nbsp"+j1[a].zskc+"&nbsp&nbsp</nobr></th>"
							 + "<th><nobr>&nbsp&nbsp"+j1[a].zskcjc+"&nbsp&nbsp</nobr></th>"
							 + "<th><nobr>&nbsp&nbsp"+j1[a].xnkc+"&nbsp&nbsp</nobr></th>"
							 + "<th><nobr>&nbsp&nbsp"+j1[a].xnkcjc+"&nbsp&nbsp</nobr></th>"
							 + "<th><nobr>&nbsp&nbsp"+j1[a].kwhb+"&nbsp&nbsp</nobr></th>"						
							 + "</tr>";
					  }
						 
						 										
					
				     biaogearr= biaogearr+ "</tbody>"+tanbleend+divend;					     
				   
		    		 $('body').append(biaogearr);
		    		
		    		var iDatejsdt = "<script type='text/javascript'>";												   
						iDatejsdt=iDatejsdt							
				    	+"$('th').resizable();"			    		    
				    	+"$('th > div:last-child').removeClass();" ;
				    	iDatejsdt=iDatejsdt+"<\/script>";
				    	
				    $('body').append(iDatejsdt);
		    	 
 		    });	 	 	  
	      
		
	
</script>
 
</html>
